package com.regent.central.bill.service;

import com.regent.central.bill.core.CreateGoods;
import com.regent.central.infrastructure.service.DomainService;

import java.util.List;

public interface CreateGoodsService extends DomainService<CreateGoods> {

    /**
     * 删除开单货品
     *
     * @param createGoodsId 开单货品ID
     * @param userDeleted   删除人
     */
    void delete(String createGoodsId, String userDeleted);

    /**
     * 根据开单动作ID删除开单货品
     *
     * @param createActionId 开单动作ID
     * @param userDeleted    删除人
     */
    void deleteForSaleOrderCreateAction(String createActionId, String userDeleted);

    /**
     * 获取销售单的开单要货
     *
     * @param saleOrderId 销售单ID
     * @return 销售单的开单要货
     */
    List<CreateGoods> getSaleOrderCreateGoods(String saleOrderId);

    /**
     * /**
     * 获取销售单的开单要货
     *
     * @param saleOrderId 销售单ID
     * @param canceled    已撤销
     * @param deleted     已删除
     * @return 销售单的开单要货
     */
    List<CreateGoods> getSaleOrderCreateGoods(String saleOrderId, Boolean canceled, Boolean deleted);

}